window.onclick = function() {

    var order1 = document.getElementById("order1");
    var order2 = document.getElementById("order2");
    var orderMenu1 = document.getElementById("orderMenu1");
    var orderMenu2 = document.getElementById("orderMenu2");

    order1.onclick = function() {
        orderMenu1.style.display = "block";
        orderMenu2.style.display = "none";
    }
    order2.onclick = function() {
        orderMenu2.style.display = "block";
        orderMenu1.style.display = "none";
    }
}